class_name ComboState

extends IState


# 进入方法
func enter() -> void:
	characterCtr.character_combo_start()
	characterCtr.play_character_anm(get_anm_name())
	characterCtr.play_character_anm_one_param(get_anm_name(), characterCtr.character_cur_combo_step())
 
#退出方法
func exit() -> void:
	characterCtr.character_combo_over()
    

#逻辑更新
func logic_update(_delta: float) -> void:
	characterCtr.character_horizontal_move(_delta, 0.01)
	if characterCtr.cur_character_anm_first_over():
		stateMachine.switch_character_state(StateMachine.CharacterStates.POST_ROCK)
    

#物理更新
func physics_update(_delta: float) -> void:
	pass
    

func get_type() -> StateMachine.CharacterStates:
	return StateMachine.CharacterStates.COMBO


func get_anm_name() -> String:
	return "Combo"